package rs.dalao.syc.index.dao.persist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import rs.dalao.syc.index.pojo.entity.Vaccine;
import rs.dalao.syc.index.pojo.vo.HotDetailVO;
import rs.dalao.syc.index.pojo.vo.VacDetailsVO;
import rs.dalao.syc.index.pojo.vo.VaccineListVO;

import java.util.List;


@Repository
public interface VaccineMapper extends BaseMapper<Vaccine> {

    /**
     * 根据类型查找集合
     *
     * @param type 类型数据
     * @return 相关的list数据
     */
    List<VaccineListVO> getVaccineList(Integer type);

    List<VacDetailsVO> getVaccineDetail(Long articleId);

    /**找热门文章*/
    List<HotDetailVO> selectVaccineHotDetail();
}
